package co.fitstart.entity.credit.order;

import com.demo2do.core.utils.Alias;

/**
 * 
 * @author mohanlan
 *
 */
@Alias("creditOrderStatus")
public enum CreditOrderStatus {
	
	/** 已创建 */
	CREATED("created", "已兑换"),
	
	/** 已发货 */
	SHIPPED("shipped", "已发货");
	
	private String alias;

    private String description;

    /**
     * 
     * @param alias
     * @param description
     */
	private CreditOrderStatus(String alias, String description) {
		this.alias = alias;
		this.description = description;
	}
	
	/**
     * 
     * @param alias
     * @return
     */
    public static CreditOrderStatus aliasOf(String alias) {
        for (CreditOrderStatus status : CreditOrderStatus.values()) {
            if (status.getAlias().equalsIgnoreCase(alias)) {
                return status;
            }
        }
        return null;
    }
	/**
	 * 
	 * @return
	 */
	public String getAlias() {
		return alias;
	}
	/**
	 * 
	 * @param alias
	 */
	public void setAlias(String alias) {
		this.alias = alias;
	}
	/**
	 * 
	 * @return
	 */
	public String getDescription() {
		return description;
	}
	/**
	 * 
	 * @param description
	 */
	public void setDescription(String description) {
		this.description = description;
	}
    
    
}
